package com.zhushou;

import android.app.Application;
import android.database.sqlite.SQLiteDatabase;
import cn.bmob.v3.Bmob;

import com.zhushou.util.AssetsDatabaseManager;

public class AppApplication extends Application {
    private static AppApplication instance;
    public SQLiteDatabase db1;

    @Override
    public void onCreate() {
        super.onCreate();
        Bmob.initialize(this, "020d9bd3e5f354dacd6de6e3661b84c7");
        instance = this;
        AssetsDatabaseManager.initManager(this);
        AssetsDatabaseManager mg = AssetsDatabaseManager.getManager();
       // db1 = mg.getDatabase("smart.db");//android 宝典数据库
        db1 = mg.getDatabase("book.db"); //安卓面试宝典数据库
    }

    public static AppApplication getInstance() {
        return instance;
    }

}
